package com.xxxx.manager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName(value = "t_goods_images")
public class GoodsImages implements Serializable {
    /**
     * 图片id 自增
     */
    @TableId(value = "img_id", type = IdType.AUTO)
    private Integer imgId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 图片地址
     */
    @TableField(value = "image_url")
    private String imageUrl;

    private static final long serialVersionUID = 1L;

    public static final String COL_IMG_ID = "img_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_IMAGE_URL = "image_url";

    /**
     * 获取图片id 自增
     *
     * @return img_id - 图片id 自增
     */
    public Integer getImgId() {
        return imgId;
    }

    /**
     * 设置图片id 自增
     *
     * @param imgId 图片id 自增
     */
    public void setImgId(Integer imgId) {
        this.imgId = imgId;
    }

    /**
     * 获取商品id
     *
     * @return goods_id - 商品id
     * @param goodsId
     */
    public Integer getGoodsId(Integer goodsId) {
        return this.goodsId;
    }

    /**
     * 设置商品id
     *
     * @param goodsId 商品id
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取图片地址
     *
     * @return image_url - 图片地址
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置图片地址
     *
     * @param imageUrl 图片地址
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl == null ? null : imageUrl.trim();
    }


}